package com.atguigu.sugar.service;

import com.atguigu.sugar.bean.Spu;
import com.atguigu.sugar.bean.Tm;
import com.atguigu.sugar.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service
public class ProductServiceImpl implements ProductService {
    
    @Autowired
    ProductMapper product;
    
    @Override
    public BigDecimal gmv(int date) {
        return product.gmv(date);
    }
    
    @Override
    public List<Map<String, Object>> gmvByC3(int date) {
        return product.gmvByC3(date);
    }
    
    @Override
    public List<Spu> gmvBySpu(int date) {
        return product.gmvBySpu(date);
    }
    
    @Override
    public List<Tm> gmvByTm(int date) {
        return product.gmvByTm(date);
    }
    
}
